@import "./mixin";
@import "./var";


img {
    border-style: none;
    max-width: 100%;
    
    vertical-align: middle;
}
.list-main{
    width: 1200px;
    margin: auto;
    &::after{
        @include clear();
    }
}

.breadcrumb{
    padding: 10px 0;
    margin-bottom: 0;
    li{
        display: inline-block;
    }
    .active{
        padding: 0 5px;
        color: #ccc;
        content: "/\00a0";
    }
}

.product-main{
    &::after{@include clear()}
    aside{
        width: 180px;
        float: left;
        border: 1px solid;
        h4{
            padding-left: 10px;
            margin: 0 0 10px;
            height: 35px;
            line-height: 35px;
        }
        ul{
            list-style-type: none;
            margin: 0;
            padding: 0;
            .empty-tip {
                text-align: center;
                padding: 10px 0 20px 0;
            }
            li{
                padding: 0 10px;
                margin-bottom: 20px;
                .p-img{
                    display: block;
                    text-align: center;
                    margin-bottom: 10px;
                    height: 160px;
                    .lazy{
                        display: inline;
                    }
                }
                .p-name{
                    height: 36px;
                    line-height: 18px;
                    margin-bottom: 10px;
                    overflow: hidden;
                    display: block;
                }
                .p-price {
                    height: 16px;
                    line-height: 16px;
                    margin-bottom: 4px;
                    overflow: hidden;
                    margin-right: 6px;
                    font-weight: 700;
                    font-size: 14px;
                }
            }
        }
    }
    .ns-border-color-gray{
        border-color: #e5e5e5 !important;
    }
    .ns-text-color-gray {
        color: #898989 !important;
    }
    .ns-text-color {
        color: #00d7dc !important;
    }

    .ns-bg-color-gray-fadeout-60 {
        background-color: rgba(229, 229, 229, 0.4) !important;
    }

    article{
        margin-left: 190px;
        .filter {
            position: relative;
            border-top: 1px solid;
            margin-bottom: 5px;
            .f-line {
                padding: 6px 8px;
                border-bottom: 1px solid;
                font-size: 12px;
            }
            .top {
                height: 38px;
            }
            .f-sort {
                float: left;
                a span {
                    display: inline-block;
                    font-size: 12px !important;
                    height: 12px;
                    line-height: 12px;
                    color: #333;
                }
            }
            .f-price {
                position: relative;
                float: left;
                width: 142px;
                height: 25px;
                margin-left: 10px;
                padding-left: 10px;
                .price-form {
                    position: absolute;
                    width: 300px;
                    z-index: 5;
                    span{
                        float: left;
                        line-height: 25px;
                    }
                    button{
                        float: left;
                        height: 20px;
                        line-height: 20px;
                        margin-top: 3px;
                        margin-left: 10px;
                    }
                }
                .form-control {
                    width: 60px;
                    height: 25px;
                    padding: 5px 3px;
                    display: inline-block;
                    border-color: #cecece !important;
                    float: left;
                }
                .price-operation {
                    position: absolute;
                    z-index: 3;
                    background: #fff;
                    border: 1px solid;
                    top: -7px;
                    left: 0;
                    width: 130px;
                    height: 25px;
                    padding: 38px 10px 8px 10px;
                    box-sizing: content-box;
                    display: none;
                    .pull-left {
                        float: left !important;
                    }
                    a {
                        line-height: 25px;
                        font-size: 12px;
                    }
                    .btn {
                        height: 25px;
                        border-radius: 0;
                        line-height: 16px;
                    }
                }
            }
            a.ns-bg-color {
                color: #FFF !important;
            }
            a {
                border-radius: 3px;

                float: left;
                padding: 3px 10px;
                border: 1px solid;
                margin-right: -1px;
                background: #FFF;
                font-size: 12px;
            }
            
        }

        .product-list {
            margin-top: 10px;
            overflow: hidden;
            position:relative;
            .swiper-pagination{
                float:right;
                position: unset;
                text-align: center;
                transition: .3s opacity;
                transform: translate3d(0,0,0);
                width: 250px;
                height: 30px;
                display: inline-block;
                background: unset;
                margin-top: 20px;
                .swiper-pagination-bullet{
                    width: 30px;
                    height: 30px;
                    display: block;
                    border-radius: 0;
                    margin: 0 15px;
                    line-height: 30px;
                    float: left;
                    cursor: pointer;
                    color : whitesmoke
                }
                .swiper-pagination-bullet-active{
                    background-color: #31c19e;
                }
            }
            .swiper-button-prev,.swiper-button-next{
                &::after{
                    font-family: swiper-icons;
                    color: #555;
                    font-size: 30px;
                    text-transform: none!important;
                    letter-spacing: 0;
                    text-transform: none;
                    font-variant: initial;
                    line-height: 1;
                    font-weight: 900;
                    
                    padding: 10px;
                }
                position:unset;
                // top: 100% !important;
                // margin-top: -60px !important;
                float: right;
                display: block;
                margin: 20px 30px;
                font-size: 12px;
            }
            .clearfix{
                &::after{@include clear()}
            }
            ol, ul {
                list-style-type: none;
                margin: 0;
                padding: 0;
            }
            
            .swiper-slide > li {
                height: 420px;
                width: 240px;
                float: left;
                padding: 12px 6px;
                position: relative;
                // margin-right: 16px;
                border: 1px solid #fff;
                transition: border-color .1s ease;
                i{
                        font-style: normal;
                }
                .p-img {
                    height: 220px;
                    position: relative;
                    text-align: center;
                    width: 220px;
                    margin: 0 auto 5px;
                    a {
                        display: block;
                    }
                    a img {
                        width: 100%;
                        height: 100%;
                        display: inline;
                        border-style: none;
                        max-width: 100%;
                        vertical-align: middle;
                    }
                }
                .p-price {
                    position: relative;
                    line-height: 22px;
                    height: 22px;
                    overflow: hidden;
                    width: 100%;
                    margin: 0 10px 8px 0;
                    font-size: 20px;
                }
                .p-scroll {
                    padding-left: 26px;
                    position: relative;
                    margin-bottom: 10px;
                    span.disabled {
                        background: #fff !important;
                    }
                    .ps-prev {
                        left: 0;
                    }
                    .ps-next {
                        right: 0;
                    }
                    .ps-wrap{
                        height: 32px;
                        position: relative;
                        overflow: hidden;
                        width: 180px;
                        ul {
                            position: absolute;
                            width: 400px;
                            height: 32px;
                            li {
                                float: left;
                                width: 36px;
                                text-align: left;
                                width: 32px;
                                padding: 0;
                                img{
                                    cursor: default;
                                    display: inline-block;
                                    border: 1px solid;
                                    width: 30px !important;
                                    height: 30px !important;
                                }
                            }
                        }
                    }
                }
                .p-scroll > span {
                    position: absolute;
                    width: 20px;
                    height: 30px;
                    line-height: 30px;
                    text-align: center;
                    font-size: 16px;
                    cursor: pointer;
                    border: 1px solid;
                }

                .p-name {
                    height: 40px;
                    margin-bottom: 5px;
                    overflow: hidden;
                    font-size: 12px;
                    line-height: 20px;
                }

                .p-icons {
                    overflow: hidden;
                    margin-bottom: 10px;
                    .icons {
                        float: left;
                        height: 18px;
                        line-height: 16px;
                        padding: 0 3px;
                        margin-right: 3px;
                        overflow: hidden;
                        text-align: center;
                        font-style: normal;
                        font-size: 12px;
                        cursor: default;
                        border-radius: 2px;
                    }
                    .icons-hot {
                        background: #e23a3a;
                        color: #fff;
                        border: 1px solid #e23a3a;
                    }
                    .icons-new {
                        background: #31c19e;
                        color: #fff;
                        border: 1px solid #31c19e;
                    }
                }
            }
        }
    }

}

.container1{
    --swiper-theme-color: #ff6600;/* 设置Swiper风格 */
    --swiper-preloader-color: #00ff33;/* 单独设置预加载圆圈的颜色 */
  }
.like-history-container {
    margin: 30px auto 0 auto;
    width: 1200px;
    .carousel {
        position: relative;
        .wrap-head {
            display: flex;
            margin-bottom: 10px;
            margin-top: 17px;
            &::before{@include clear()}
            .tab, .wrap-head .list-tab {
                flex: 1;
            }
            .tab ul li {
                display: inline-block;
                margin-right: 35px;
                padding-bottom: 3px;
                border-bottom: 2px solid #fff;
                cursor: pointer;
            }
            &::after{@include clear()}
            
            .carousel-container {
                position: relative;
            }
            .carousel-inner {
                position: relative;
                width: 100%;
                overflow: hidden;
                text-align: center;
            }
        }
    }
}